class ObjectUtils {
    /** 剔除无效值 */
    public static purify(data: Record<string, any>) {
        let obj: Record<string, any> = {};
        Object.keys(data).forEach((key: string) => {
            if (data[key] !== undefined && data[key] !== null) {
                obj[key] = data[key];
            }
        })
        return obj;
    }
}

export = ObjectUtils